/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"29B2C5E5-DE87-4A65-B9BD-D602A7B43FBF"}
 */
function confirmar(event) {
	if (databaseManager.saveData(foundset) == true)
	{
		plugins.window.closeFormPopup(paciente_id)
	}
	else
	{
		globals.DIALOGS.showErrorDialog('Error','Ocurrio un error al grabar el paciente','OK')
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"A957D72F-ED45-4D9B-A49E-85F69AB1E8DF"}
 */
function cancelar(event) {
	databaseManager.revertEditedRecords(foundset)
	plugins.window.cancelFormPopup()
}
